package com.indigon.turing
{
	import com.indigon.turing.control.Control;
	import com.indigon.turing.data.ArenaData;
	import com.indigon.turing.data.PlayerData;
	import com.indigon.turing.model.hex.HexCoords;
	import com.indigon.utils.PerformanceMonitor;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	
	[SWF(width="640", height="480", frameRate="30", backgroundColor="#ffffff")]
	public class TuringMain extends Sprite
	{
		public function TuringMain()
		{
			var gameControl : Control = new Control();
			var canvas      : DisplayObject = gameControl.canvas;
			addChild(canvas);
			
			stage.addChild(new PerformanceMonitor());
			
			gameControl.configure(new ArenaData(	12, 	
													Vector.<PlayerData>([new PlayerData("Shay", 1.0), new PlayerData("CPU", 1.0)]), 
													Vector.<HexCoords>([new HexCoords(6, 0), new HexCoords(6, 18)]),
													Vector.<HexCoords>([new HexCoords(4, 0), new HexCoords(4, 12)])
												));
			
			gameControl.start();
		}
	}
}